﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
    <head>
        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
        <meta content="history" name="save">
        <title>SA1126: PrefixCallsCorrectly</title>
        <link rel="stylesheet" type="text/css" href="stylesheets/helpstudio.css"><link rel="stylesheet" type="text/css" href="styles/Presentation.css">
        <script src="script/helpstudio.js" type="text/javascript"></script>
        <script src="script/StandardText.js" type="text/jscript"></script>
    </head>
    <body id="hsbody">
        <input type="hidden" id="userDataCache" class="userDataStyle" name="userDataCache" />
        <div id="allHistory" class="saveHistory" onsave="saveScrollPosition()" onload="loadScrollPosition()"></div>
        <script type="text/jscript">WritePageTop(document.title);</script>
        <div id="pagebody">
            <div id="mainbody">
                <table>
                    <col />
                    <tr><td><p>TypeName</p></td><td><p>PrefixCallsCorrectly</p></td></tr>
                    <tr><td><p>CheckId</p></td><td><p>SA1126</p></td></tr>
                    <tr><td><p>Category</p></td><td><p>Readability Rules</p></td></tr>
                </table>           
                <h2>Cause</h2>
                <P>A call to a member is not prefixed with the 'this.', 'base.', 'object.' or 'typename.' prefix to indicate the intended method call, within a C# code file.</P>
                <H2>Rule Description</H2>
                <P>A violation of this rule occurs whenever the code contains a call to a member which is not prefixed correctly.</P>
                <p>In some case from sourcecode analysis we cannot be sure which prefix is required. 
                    It could be &#39;this&#39;, &#39;base&#39;, &#39;object&#39;, the typename of the class we&#39;re in or one 
                    of our base classes.</p>
                <H2>How to Fix Violations</H2>
                <P>To fix a violation of this rule, insert the correct prefix before the call to the class member.</P>
                <h2>How to Suppress Violations</h2>
                <pre>[SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1126:PrefixCallsCorrectly", Justification = "Reviewed.")]</pre>
            </div>
           <script type="text/jscript">WritePageFooter();</script> 
        </div>
    </body>
</html>